using System.Configuration;
using Uber.Core.Repository;
using Uber.Core.Service;
using Uber.Infra;

namespace Uber.WebUI.Controllers
{
    public static class Fa
    {
        public static IUniRepo U
        {
            get { return IoC.Resolve<IUniRepo>(); }
        }

        public static IPosts Post
        {
            get { return IoC.Resolve<IPosts>(); }
        }

        public static IAccounts Account
        {
            get { return IoC.Resolve<IAccounts>(); }
        }

        public static IComments Comment
        {
            get { return IoC.Resolve<IComments>(); }
        }

        public static INotifications Notification
        {
            get { return IoC.Resolve<INotifications>(); }
        }

        public static IMailSender MailSender { get { return IoC.Resolve<IMailSender>(); } }

        public static string Storage
        {
            get { return ConfigurationManager.AppSettings["storagePath"]+"\\"; }
        }
    }
}